
/**
 * 
 */
package com.zsrt.day20170413.ch03;

import org.junit.Test;


/**
 * 测试
 * @author jmj
 * @date 2017年4月13日
 * @time 下午5:34:57
 */
public class AllTest {
	
	@Test
	public void allTest() throws Exception {
		
		ShengWu a2= new Animal();
		a2.print();
		
		//父类不同
		ShengWu a = new Rabbit();
		a.print();
		
		Animal a1 = new Rabbit();
		a1.print();
		
		
		
		ShengWu b = new Apple();
		b.print();
		Planet b1 = new Apple();
		b1.print();
		
		
		
		ShengWu c = new Orange();
		c.print();
		
		
	}

}
